import requests
header = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3775.400 QQBrowser/10.6.4208.400'
    }
response =requests.get("http://www.pxu.edu.cn/",headers=header)
response.encoding='utf-8'

pxxy=open('resource/pxxy.html','w',encoding='Utf-8')
pxxy.write(response.text)


